<table border=0 cellpadding=0 cellspacing=0 align=center width="100%">
    <tr>
        <td><div class="heading"><strong>Categories</strong></div><ul style="color: #FFFFFF"></td>
    </tr>
    <% for category in @categories   %>
        <%  if category.parent.nil? %>
        <tr>
            <td style="padding-left:5px"><li><%= link_to_remote( h(category.name),:update=>"div_thumb",:url=>{:action => 'view_thumb', :id =>category},:before=>"show_loader('div_thumb')")%></li></td>
        </tr>
        <% end %>
    <% end %>
    <tr>
        <td><ul></td>
    </tr>
    <tr>
        <td class="s_form"><%= form_remote_tag(:url=>{:action => 'search'}, :post=> true, :update => 'div_thumb', :before=>"show_loader('div_thumb');") %>
            <div class="heading" style="padding-top:30px"><strong>Search</strong></div>
            <%= text_field 'search','keyword', {"class"=>"t_field"} -%>
            <%= image_submit_tag '/images/gallery_view/button_search.gif', :height=>'22px' -%>
            <table width="90%">
                <tr>
                    <td>By brief description<br/></td>
                    <td><%= check_box('search', 'brief_descr',{:checked=>'checked'})%></td>
                </tr>
                <tr>
                    <td>By full description<br/></td>
                    <td><%= check_box('search', 'full_descr',{:checked=>'checked'})%></td>
                </tr>
                <tr>
                    <td>By name<br/></td>
                    <td><%= check_box('search', 'name',{:checked=>'checked'})%></td>
                </tr>
                <tr>
                    <td>By author<br/></td>
                    <td><%= check_box('search', 'author',{:checked=>'checked'})%></td>
                </tr>            
            </table>
            <% end_form_tag%></td>
    </tr>
</table>